#!usr/bin/env python
# -*- coding:utf-8 -*-
# user nanme: Mr.zhang
# data time : 2022/11/22   3:04 下午
# project   : read_apk.py
# IDE       : PyCharm
# email     :17600960626@163.com
import os

from lib.read_file import Corpus


class apk(Corpus):

    def __init__(self):
        self.apk_path = "/data/apk"

    def read_apk(self):
        """获取apk路径"""
        apk_path=[]
        for parent, dirnames, filnames in os.walk(self.base_path(self.apk_path)):
            for paths in filnames:
                path = os.path.join(paths)
                if '.apk' in path:
                    apk_path.append(self.base_path(self.apk_path)+"/"+path)
        return apk_path




rad_apk=apk()
